package org.jeecg.modules.scm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.scm.dto.PageSearchOfChainDto;
import org.jeecg.modules.scm.entity.ScmSupplyChain;
import org.jeecg.modules.scm.vo.CusChainInfoVo;
import org.jeecg.modules.scm.vo.SupplyChainVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description: scm_supply_chain
 * @Author: jeecg-boot
 * @Date: 2021-10-28
 * @Version: V1.0
 */
public interface IScmSupplyChainService extends IService<ScmSupplyChain> {
    /**
     * 获取项目ID获取供应链关联关系的列表信息
     *
     * @param itemId
     * @return
     */
    List<CusChainInfoVo> getCusChainInfo(Integer itemId);

    /**
     * 根据指定字段模糊查询
     *
     * @param type
     * @param value
     * @return
     */

    public List<ScmSupplyChain> fuzzyQueryByField(String fields,String type,String value);


    /**
     * 修改Dto对象为实体类
     * @param scmSupplyChain
     * @return
     */
    public ScmSupplyChain modifyDto2Enity(ScmSupplyChain scmSupplyChain);

    /**
     *
     * 修改实体类为Vo对象
     * @param scmSupplyChain
     * @return
     * */
    public SupplyChainVo modifyEnity2Vo(ScmSupplyChain scmSupplyChain);

    /**
    * 根据名称分页查询
    * @param pageSearchOfChainDto
    * @return
    * */

    public List<SupplyChainVo> pageSearch(PageSearchOfChainDto pageSearchOfChainDto);
//    Page<SupplyChainVo> pageSearch(PageSearchOfChainDto pageDto);


}
